FromColors(ElementValue,Color[]) Method
Creates a SmartPalette with range colors based on the specified element value and colors.
Syntax
'Declaration Public Shared Function FromColors( _ ByVal ev As ElementValue, _ ByVal ParamArray colors() As Color _ ) As SmartPalette
'Usage Dim ev As ElementValue Dim colors() As Color Dim value As SmartPalette value = SmartPalette.FromColors(ev, colors)
public static SmartPalette FromColors( ElementValue ev, params Color[] colors )
Parameters
- ev
- Element value on which element coloring is based.
- colors
- Colors to base SmartColors on.
Return Value
The resulting smartPalette will be empty. The value ranges for the individual SmartColors will be evaluated at run-time.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also